package com.ruoyi.pims.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 成绩管理对象 edu_grade
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
public class EduGrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成绩ID */
    private Long gradeId;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long userId;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long courseId;

    /** 平时成绩 */
    @Excel(name = "平时成绩")
    private BigDecimal regularScore;

    /** 考试成绩 */
    @Excel(name = "考试成绩")
    private BigDecimal examScore;

    /** 最终成绩 */
    @Excel(name = "最终成绩")
    private BigDecimal finalScore;

    /** 学期 */
    @Excel(name = "学期")
    private String semester;

    /** 状态（0有效 1作废） */
    @Excel(name = "状态", readConverterExp = "0=有效,1=作废")
    private String status;

    public void setGradeId(Long gradeId) 
    {
        this.gradeId = gradeId;
    }

    public Long getGradeId() 
    {
        return gradeId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }

    public void setRegularScore(BigDecimal regularScore) 
    {
        this.regularScore = regularScore;
    }

    public BigDecimal getRegularScore() 
    {
        return regularScore;
    }

    public void setExamScore(BigDecimal examScore) 
    {
        this.examScore = examScore;
    }

    public BigDecimal getExamScore() 
    {
        return examScore;
    }

    public void setFinalScore(BigDecimal finalScore) 
    {
        this.finalScore = finalScore;
    }

    public BigDecimal getFinalScore() 
    {
        return finalScore;
    }

    public void setSemester(String semester) 
    {
        this.semester = semester;
    }

    public String getSemester() 
    {
        return semester;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gradeId", getGradeId())
            .append("userId", getUserId())
            .append("courseId", getCourseId())
            .append("regularScore", getRegularScore())
            .append("examScore", getExamScore())
            .append("finalScore", getFinalScore())
            .append("semester", getSemester())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
